package com.kotlinvben.vo

import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size

data class RoleUpdateVO(
    @field:NotBlank(message = "角色名称不能为空")
    @field:Size(min = 2, max = 50, message = "角色名称长度必须在2-50个字符之间")
    val name: String,

    @field:NotBlank(message = "角色标识不能为空")
    @field:Size(min = 2, max = 50, message = "角色标识长度必须在2-50个字符之间")
    val code: String,

    @field:NotNull(message = "状态不能为空")
    val status: Int = 1,

    @field:Size(max = 200, message = "备注长度不能超过200个字符")
    val remark: String? = null,

    val permissions: List<Long>? = null,
) 